package com.you.atlas.biz.place.service.impl;

import com.you.atlas.biz.place.service.AlbumQueryService;
import com.you.common.ibatis.data.DataList;
import com.you.place.dal.dao.AlbumDAO;
import com.you.place.dal.dao.dataobject.AlbumDO;

public class AlbumQueryServiceImpl implements AlbumQueryService {

    private AlbumDAO albumDAO;

    public void setAlbumDAO(AlbumDAO albumDAO) {
        this.albumDAO = albumDAO;
    }

    @Override
    public AlbumDO find(Long id) {

        return albumDAO.find(id);
    }

    @Override
    public DataList queryAlbumByPlaceId(int pageNo, Long placeId) {
        return albumDAO.queryByPlaceId(pageNo, 15, placeId);
    }

    @Override
    public DataList queryAlbumByMemberId(int pageNo, int pageSize, Long memberId) {
        return albumDAO.queryByMemberId(pageNo, pageSize, memberId);
    }

}
